package com.jy.oms.framework.asyn.task.queue.database.entity;

import java.util.Date;

/**
 * 队列任务
 */
public class SysTaskQueue {

    private Long id;

    /**
     * 业务组标识
     */
    private String businessGroup;

    /**
     * 任务分组标识
     */
    private String taskGroup;

    /**
     * 任务编码
     */
    private String taskCode;

    /**
     * 任务参数
     */
    private String taskParam;

    /**
     * 执行次数
     */
    private Integer callCount;

    /**
     * 相关单号
     */
    private String billCode;

    /**
     * 状态，0待处理，1已处理
     */
    private Integer state;

    /**
     * 环境，生产-prod，预发-stg，测试-test，开发-dev
     */
    private String envFlag;

    /**
     * 任务最早执行时间
     */
    private Date earliestExecuteTime;

    /**
     * uuid
     */
    private String uuid;

    private Date createDate;

    private String createBy;

    private Date updateDate;

    private String updateBy;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTaskGroup() {
        return taskGroup;
    }

    public void setTaskGroup(String taskGroup) {
        this.taskGroup = taskGroup;
    }

    public String getBusinessGroup() {
        return businessGroup;
    }

    public SysTaskQueue setBusinessGroup(String businessGroup) {
        this.businessGroup = businessGroup;
        return this;
    }

    public String getTaskCode() {
        return taskCode;
    }

    public void setTaskCode(String taskCode) {
        this.taskCode = taskCode;
    }

    public String getTaskParam() {
        return taskParam;
    }

    public void setTaskParam(String taskParam) {
        this.taskParam = taskParam;
    }

    public String getBillCode() {
        return billCode;
    }

    public void setBillCode(String billCode) {
        this.billCode = billCode;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getEnvFlag() {
        return envFlag;
    }

    public void setEnvFlag(String envFlag) {
        this.envFlag = envFlag;
    }

    public Date getEarliestExecuteTime() {
        return earliestExecuteTime;
    }

    public SysTaskQueue setEarliestExecuteTime(Date earliestExecuteTime) {
        this.earliestExecuteTime = earliestExecuteTime;
        return this;
    }

    public Integer getCallCount() {
        return callCount;
    }

    public SysTaskQueue setCallCount(Integer callCount) {
        this.callCount = callCount;
        return this;
    }

    public String getUuid() {
        return uuid;
    }

    public SysTaskQueue setUuid(String uuid) {
        this.uuid = uuid;
        return this;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }
}

